package com.link_with_health.mapper;

import com.link_with_health.model.DepartmentsEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface DepartmentsMapper {
    DepartmentsEntity queryDepartById(Long departmentId);
    DepartmentsEntity queryDepartByNameExact(String name);
    List<DepartmentsEntity> queryAllDepartments();
    List<DepartmentsEntity> queryMainDepartments();
    List<DepartmentsEntity> queryDepartmentsByParentDepart(Integer parentDepart);
    int insertDepartment(DepartmentsEntity department);
    int updateDepartment(DepartmentsEntity department);
    int deleteDepartment(Long departmentId);
}
